﻿using System;
using Framework;
using Module.M2;
using UnityEngine;

public class M2Controller : Controller<M2View>
{
    protected override void Init()
    {
        AddListener(M2Event.M2, OnM2);
    }

    private void OnM2()
    {
        // GetService<VoiceRecognitionService>().Start();

        DelayCall(5, () => Log.Debug("Delay Call!"));
        
        CountDown(1, remaing =>
        {
            Log.Error(DateTime.Now.ToString());
            
        }, () =>
        {
            Log.Error("CountDown Finish>>>>" + Time.realtimeSinceStartup);
        }, Timer.GetCurrentTime() + 10 * 1000);
        
        M2Model model = GetModel<M2Model>();
    }
}